package com.example.demo.intf;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.example.demo.bean.Result;
import com.example.demo.entity.es.Msg;
import com.example.demo.exception.SPIPException;

@FeignClient(value = "chat-server")
public interface WsInterface {

	@PostMapping(value = "/ws/send")
	public Result sendToUser(@RequestBody Msg msg) throws SPIPException;
}
